tools/libxenctrl: fix error check after opening libxenforeignmemory
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 22 Feb 2017 13:27:34 +0000 (13:27 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 13:24:40 +0000 (14:24 +0100)
commite0354e65fec21a51e573bf82ef930cb97ed11c96
treeec73572d2294ccf9b8917a87b09c67fceba67f8b
parenta085f0ca12a3db203f9dcfc96dc3722d0f0f3fbf
tools/libxenctrl: fix error check after opening libxenforeignmemory

Checking the value of xch->xcall is clearly incorrect. The code should be
checking xch->fmem (i.e. the return of the previously called function).

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit 80a7d04f532ddc3500acd7988917708a536ae15f)
tools/libxc/xc_private.c